import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login'
import ElementUI from 'element-ui'

Vue.use(Router)
Vue.use(ElementUI)

export default new Router({
    base:"exam/admin/",
    routes: [
        {
            path: '/',
            name: 'login',
            component: login
        },
        {
            path: '/nav/home',
            component: resolve => require(['../components/nav/home.vue'], resolve),
            children:[
                {
                    path:'/',
                    component: resolve => require(['../components/page/government.vue'], resolve)
                },
                {
                    path:'/nav/examinee',
                    component: resolve => require(['../components/page/examinee.vue'], resolve)
                },
                {
                    path:'/nav/signup',
                    component: resolve => require(['../components/page/signup.vue'], resolve)
                },
                {
                    path:'/nav/theTest',
                    component: resolve => require(['../components/page/theTest.vue'], resolve)
                },
                {
                    path:'/nav/examinationRoom',
                    component: resolve => require(['../components/page/examinationRoom.vue'], resolve)
                },
                {
                    path:'/nav/subjects',
                    component: resolve => require(['../components/page/subjects.vue'], resolve)
                },
                {
                    path:'/nav/arrange',
                    component: resolve => require(['../components/page/arrange.vue'], resolve)
                },
                {
                    path:'/nav/certificate',
                    component: resolve => require(['../components/page/certificate.vue'], resolve)
                },
                {
                    path:'/nav/results',
                    component: resolve => require(['../components/page/results.vue'], resolve)
                },
                {
                    path:'/nav/ifThe',
                    component: resolve => require(['../components/page/ifThe.vue'], resolve)
                },
                {
                    path:'/nav/report',
                    component: resolve => require(['../components/page/report.vue'], resolve)
                }
            ]
        }
    ]
})
